package com.example.stujava.module.xiangxue.proxy.static_proxy;

public class ApiProxy implements Api {

    private final Api api;

    public ApiProxy(Api api) {
        this.api = api;
    }

    @Override
    public void addData(String data) {
        api.addData(data);
    }

    @Override
    public String queryState() {
        return api.queryState();
    }

    @Override
    public void updateData() {
        api.updateData();
    }
}